<script setup lang="ts">
import BasicLayout from "@/layouts/BasicLayout.vue";
import {useRoute, useRouter} from "vue-router";
import {useUserStore} from "@/stores/user";
import {onMounted} from "vue";

const userStore = useUserStore()
const route = useRoute()
/**
 * todo 全局初始化函数
 */
const init = () => {
  console.log('hello')
}
onMounted(() => {
  init()
})
</script>

<template>
  <div class="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view></router-view>
    </template>
    <template v-else>
      <BasicLayout></BasicLayout>
    </template>

  </div>

</template>

<style scoped lang="less">

</style>
